<?php
<object class="admin_user_management" name="admin_user_management" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Manage Users</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">635</property>
  <property name="IsMaster">0</property>
  <property name="Name">admin_user_management</property>
  <property name="Width">795</property>
  <property name="OnCreate">admin_user_managementCreate</property>
  <property name="jsOnLoad">admin_user_managementJSLoad</property>
  <object class="Image" name="Image4" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Height">47</property>
    <property name="ImageSource">image/search-bg.png</property>
    <property name="Left">549</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image4</property>
    <property name="Width">246</property>
  </object>
  <object class="JTPlatinumGrid" name="JTManageUsers" >
    <property name="AllowDelete">0</property>
    <property name="AllowInsert">0</property>
    <property name="AllowScrolling">0</property>
    <property name="AllowUpdate">0</property>
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="CellData">a:0:{}</property>
    <property name="Columns">a:0:{}</property>
    <property name="EvenRowStyle">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="Header">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
        <property name="ShowFilterBar">0</property>
        <property name="ShowGroupBar">0</property>
        <property name="SimpleFilter">0</property>
    </property>
    <property name="Height">595</property>
    <property name="Name">JTManageUsers</property>
    <property name="OddRowStyle">
        <property name="Color">#FFFFFF</property>
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="Pager">
        <property name="RowsPerPage">15</property>
        <property name="ShowPageInfo">0</property>
        <property name="ShowRecordCount">0</property>
        <property name="ShowTopPager">0</property>
        <property name="VisiblePageCount">15</property>
    </property>
    <property name="RowDataStyles">a:0:{}</property>
    <property name="SelectedRowStyle">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="ShowSelectColumn">0</property>
    <property name="SiteTheme"></property>
    <property name="Top">40</property>
    <property name="Width">795</property>
    <property name="OnShow">JTManageUsersShow</property>
  </object>
  <object class="JTJavaScript" name="JSActivate" >
    <property name="Code"><![CDATA[function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	  {
		    return new XMLHttpRequest();
		      }
		      if (window.ActiveXObject)
		        {
			          return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
			            }
			            return null;
			            }

var xmlhttp
function activate(acct_id, username, password)
{	
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
		    alert (&quot;Your browser does not support AJAX!&quot;);
		      return;
		        }
		          
		        var url=&quot;activate_account.php&quot;;
		        url=url+&quot;?acct_id=&quot;+acct_id;
		        url=url+&quot;&amp;password=&quot;+password;
		        xmlhttp.onreadystatechange=stateChanged;
		        xmlhttp.open(&quot;GET&quot;,url,true);
		        xmlhttp.send(null);
		        alert('Successfully Activated account with username: '+username+'!');
		        }
		        
		        function stateChanged()
		        {
			        if (xmlhttp.readyState==4)
			          {
				             document.location.href='admin_manage_users.php';
				             //document.location.reload();
				               }
				             }]]></property>
    <property name="Height">20</property>
    <property name="Name">JSActivate</property>
    <property name="Top">22</property>
    <property name="Width">180</property>
  </object>
  <object class="JTDivWindow" name="JTActivate" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="Caption">Activate Account</property>
    <property name="Height">160</property>
    <property name="Left">277</property>
    <property name="Name">JTActivate</property>
    <property name="Position">poParentCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">217</property>
    <property name="Width">260</property>
    <object class="Label" name="Label1" >
      <property name="Caption">Username:</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">20</property>
      <property name="Name">Label1</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">47</property>
      <property name="Width">67</property>
    </object>
    <object class="Label" name="Label2" >
      <property name="Caption">Password:</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">20</property>
      <property name="Name">Label2</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">74</property>
      <property name="Width">75</property>
    </object>
    <object class="Edit" name="editPassword" >
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">21</property>
      <property name="Left">99</property>
      <property name="Name">editPassword</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="ReadOnly">1</property>
      <property name="Top">69</property>
      <property name="Width">141</property>
    </object>
    <object class="Button" name="btnSave" >
      <property name="ButtonType">btNormal</property>
      <property name="Caption">Activate and set password</property>
      <property name="Color">#000000</property>
      <property name="Cursor">crPointer</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">25</property>
      <property name="Left">20</property>
      <property name="Name">btnSave</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">111</property>
      <property name="Width">220</property>
      <property name="jsOnClick">btnSaveJSClick</property>
    </object>
    <object class="Label" name="lblUsername" >
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">99</property>
      <property name="Name">lblUsername</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">47</property>
      <property name="Width">141</property>
    </object>
  </object>
  <object class="JTJavaScript" name="JSShow" >
    <property name="Code"><![CDATA[function showDivWindow(acct_id,username)
{
	document.getElementById('JTActivate').Show();
	var chars = &quot;0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz&quot;;
	var string_length = 8;
	var randomstring = '';
	for (var i=0; i&lt;string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	document.getElementById('hfAcctId').value = acct_id;
	document.getElementById('hfUsername').value = username;
	document.getElementById('editPassword').value = randomstring;
	document.getElementById('lblUsername').innerHTML = username;
	
}]]></property>
    <property name="Height">20</property>
    <property name="Left">64</property>
    <property name="Name">JSShow</property>
    <property name="Top">24</property>
    <property name="Width">180</property>
  </object>
  <object class="HiddenField" name="hfAcctId" >
    <property name="Height">18</property>
    <property name="Left">200</property>
    <property name="Name">hfAcctId</property>
    <property name="Top">9</property>
    <property name="Width">180</property>
  </object>
  <object class="HiddenField" name="hfUsername" >
    <property name="Height">18</property>
    <property name="Left">200</property>
    <property name="Name">hfUsername</property>
    <property name="Top">24</property>
    <property name="Width">180</property>
  </object>
  <object class="Edit" name="edtSearch" >
    <property name="BorderStyle">bsNone</property>
    <property name="Color">transparent</property>
    <property name="Cursor">crText</property>
    <property name="Font">
        <property name="Align">taLeft</property>
        <property name="Color">#000000</property>
        <property name="LineHeight">12</property>
        <property name="Size">14</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">597</property>
    <property name="Name">edtSearch</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">14</property>
    <property name="Width">185</property>
    <property name="jsOnClick">edtSearchJSClick</property>
  </object>
  <object class="Button" name="btnSearch" >
    <property name="Caption">btnSearch</property>
    <property name="Color">#000000</property>
    <property name="Height">24</property>
    <property name="ImageSource">image/search-btn.png</property>
    <property name="Left">559</property>
    <property name="Name">btnSearch</property>
    <property name="ParentColor">0</property>
    <property name="Top">14</property>
    <property name="Width">36</property>
  </object>
  <object class="HiddenField" name="hfCount" >
    <property name="Height">18</property>
    <property name="Left">328</property>
    <property name="Name">hfCount</property>
    <property name="Top">9</property>
    <property name="Width">200</property>
  </object>
  <object class="JTDivWindow" name="Alert" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="Caption">Alert</property>
    <property name="Height">104</property>
    <property name="Left">277</property>
    <property name="Name">Alert</property>
    <property name="Position">poParentCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">77</property>
    <property name="Width">284</property>
    <object class="Label" name="lblNew" >
      <property name="Caption">You have 10 new applications</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
            <property name="Size">12</property>
      </property>
      <property name="Height">18</property>
      <property name="Left">70</property>
      <property name="Name">lblNew</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">43</property>
      <property name="Width">200</property>
    </object>
    <object class="Image" name="Image1" >
      <property name="Autosize">1</property>
      <property name="Border">0</property>
      <property name="Height">27</property>
      <property name="ImageSource">image/mail.png</property>
      <property name="Left">20</property>
      <property name="Link"></property>
      <property name="LinkTarget"></property>
      <property name="Name">Image1</property>
      <property name="Top">39</property>
      <property name="Width">40</property>
    </object>
    <object class="Button" name="Button1" >
      <property name="Caption">OK</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">21</property>
      <property name="Left">112</property>
      <property name="Name">Button1</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">73</property>
      <property name="Width">60</property>
      <property name="OnClick">Button1Click</property>
    </object>
  </object>
  <object class="JTHeaderCode" name="JTHeaderGrey" >
    <property name="Code"><![CDATA[&lt;script type=&quot;text/javascript&quot;&gt;
    var GB_ROOT_DIR = &quot;greybox/&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;greybox/AJS.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;greybox/AJS_fx.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;greybox/gb_scripts.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;greybox/gb_styles.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;]]></property>
    <property name="Height">20</property>
    <property name="Name">JTHeaderGrey</property>
    <property name="Width">180</property>
  </object>
  <object class="JTDivWindow" name="JTDivWindowReactivate" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="Caption">Re-activate Account</property>
    <property name="Height">168</property>
    <property name="Left">53</property>
    <property name="Name">JTDivWindowReactivate</property>
    <property name="Position">poParentCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">160</property>
    <property name="Width">260</property>
    <object class="Label" name="Label3" >
      <property name="Caption">Username:</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">20</property>
      <property name="Name">Label3</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">47</property>
      <property name="Width">67</property>
    </object>
    <object class="Button" name="btnReactivate" >
      <property name="ButtonType">btNormal</property>
      <property name="Caption">Re-activate Account</property>
      <property name="Color">#000000</property>
      <property name="Cursor">crPointer</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">25</property>
      <property name="Left">20</property>
      <property name="Name">btnReactivate</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">126</property>
      <property name="Width">220</property>
      <property name="jsOnClick">btnReactivateJSClick</property>
    </object>
    <object class="Label" name="lblUsernameReact" >
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">99</property>
      <property name="Name">lblUsernameReact</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">47</property>
      <property name="Width">141</property>
    </object>
    <object class="Label" name="Label4" >
      <property name="Caption">Exp. Date</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">20</property>
      <property name="Name">Label4</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">71</property>
      <property name="Width">67</property>
    </object>
    <object class="DateTimePicker" name="dtpExpiration" >
      <property name="Caption">dtpExpiration</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">17</property>
      <property name="IfFormat">%Y-%m-%d</property>
      <property name="Left">99</property>
      <property name="Name">dtpExpiration</property>
      <property name="ParentFont">0</property>
      <property name="ShowsTime">0</property>
      <property name="Top">69</property>
      <property name="Width">141</property>
    </object>
    <object class="Label" name="Label5" >
      <property name="Caption">Package</property>
      <property name="Color">#000000</property>
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">13</property>
      <property name="Left">20</property>
      <property name="Name">Label5</property>
      <property name="ParentColor">0</property>
      <property name="ParentFont">0</property>
      <property name="Top">97</property>
      <property name="Width">67</property>
    </object>
    <object class="ComboBox" name="cmbPackage" >
      <property name="Font">
            <property name="Color">#FFFFFF</property>
      </property>
      <property name="Height">18</property>
      <property name="ItemIndex">Starter</property>
      <property name="Items"><![CDATA[a:3:{s:7:&quot;Starter&quot;;s:7:&quot;Starter&quot;;s:8:&quot;Business&quot;;s:8:&quot;Business&quot;;s:12:&quot;Professional&quot;;s:12:&quot;Professional&quot;;}]]></property>
      <property name="Left">99</property>
      <property name="Name">cmbPackage</property>
      <property name="ParentFont">0</property>
      <property name="Top">95</property>
      <property name="Width">141</property>
    </object>
  </object>
  <object class="HiddenField" name="hfCompanyId" >
    <property name="Height">18</property>
    <property name="Left">352</property>
    <property name="Name">hfCompanyId</property>
    <property name="Top">25</property>
    <property name="Width">200</property>
  </object>
  <object class="JTJavaScript" name="JSReactivate" >
    <property name="Code"><![CDATA[function reactivateWindow(comp_id,username)
{
	document.getElementById('JTDivWindowReactivate').Show();
	document.getElementById('lblUsernameReact').innerHTML = username;
	document.getElementById('hfCompanyId').value = comp_id;
}
var xmlhttp
function reactivate(company_id)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert (&quot;Your browser does not support AJAX!&quot;);
  return;
  }
var exp_date = document.getElementById(&quot;f-calendar-field-1&quot;).value;  
var pack = document.getElementById(&quot;cmbPackage&quot;).value;
var url=&quot;reactivate_ajax.php&quot;;
url=url+&quot;?company_id=&quot;+company_id;
url=url+&quot;&amp;exp_date=&quot;+exp_date;
url=url+&quot;&amp;pack=&quot;+pack;
if(confirm(&quot;Are you sure you want reactivate this account?&quot;))
{
xmlhttp.onreadystatechange=stateChangedReact;
xmlhttp.open(&quot;GET&quot;,url,true);
xmlhttp.send(null);
}
}

function stateChangedReact()
{
if (xmlhttp.readyState==4)
  {
  window.location.href='admin_manage_users.php';
  }
}]]></property>
    <property name="Height">20</property>
    <property name="Left">312</property>
    <property name="Name">JSReactivate</property>
    <property name="Width">180</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">184</property>
        <property name="Top">0</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
